package day4.Animal;

public class Tets {
    public static void main(String[] args) {
        Animal a = new Animal();
        a.age = 10;
        a.setAge(12);
        a.setColor("黑色");
        a.show();
        System.out.println("============================");
        Dog d = new Dog();

        System.out.println(d.num);
        System.out.println(d.getNum());

        d.age = 1;
        d.setAge(2);
        d.setColor("白色");
        d.setName("小白");
        d.disp();
        d.show();
    }
}
